public class CourseBuilder {
    private Course course = new Course();

    public CourseBuilder addName(String name){
        course.setName(name);
        return this;
    }

    public CourseBuilder addPPT(String PPT){
        course.setPPT(PPT);
        return this;
    }

    public CourseBuilder addVideo(String video){
        course.setVideo(video);
        return this;
    }

    public CourseBuilder addNote(String note){
        course.setNote(note);
        return this;
    }

    public CourseBuilder addHomework(String homework){
        course.setHomework(homework);
        return this;
    }

    public Course build(){
        return course;
    }

    public static void main(String[] args) {
        CourseBuilder builder = new CourseBuilder().addName("设计模式").addPPT("PPT课件").addVideo("回放视频").addNote("课堂笔记").addHomework("课后作业");
        System.out.println(builder.build());
    }
}
